<link media="screen" rel="stylesheet" type="text/css"
	href="/crawler/public/admin.css" />
<center>
<div class="addcate">
	<form action="" method="post">		
			<h1>ADD KEYWORD</h1>
			 <?php 
			  if($this->errors){
				foreach($this->errors as $item)
				{echo '<span style="color:red;font-weight:bold;">'.$item.'</span><br>';}
			}
			  ?><br>			
			 <!-- <label>Website:</label><input type="text" name="txtweb" size="25"/><br>
			<label>URL:</label><input type="text" name="txturl" size="25"/><br> -->
			<label>Keyword:</label><input type="text" name="txtkey" size="25"/><br>
			<label>&nbsp;</label><input type="submit" name="ok" value="Add" />		
	</form>	
</div>
<div class="listcate">
	<table class="table-3">
		<tr>
			<td>Name</td>
			<td>Action</td>
		</tr>
		<?php foreach ($this->datakey as $item) {?>
			<tr>
				<td><?php echo $item['name'];?></td>
				<td><a href="">Edit</a>&nbsp;&nbsp;<a href="<?php echo ROOT_URL?>/admintool/deletekeyword/id/<?php echo $item['id'];?>">Del</a></td>
			</tr>
		<?php }?>
	</table>
	
</div>
</center>